Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 2.22 KB

assume_valid_handler.rst

File metadata and controls

46 lines (38 loc) · 2.22 KB

assume_valid_handler

The assume_valid_handler is a Undefined-Behavior invoking error handler. If an error is encountered, the encoding can legally ignore and never, ever call the error handler at all. This can invoke on malformed input.

Warning

⚠️ This should only ever be used on the most trusted of input, ever, and that input should never come from a source that is a user or connected to ANY external input sources such as the Network, Shared Pipe, Inter-Procedural Call, or similar.

Implementers of encodings within templates can check for a potentially ignorable error handler like this one using ztd::text::is_ignorable_error_handler_v </api/is_ignorable_error_handler>.

ztd::text::assume_valid_handler

ztd::text::assume_valid_handler_t